package com.sumainfor.zuul.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.sumainfor.zuul.dao.SysLogDao;
import com.sumainfor.zuul.entity.SysLogEntity;
import com.sumainfor.zuul.service.SysLogService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author PuaChen
 * @date 2019-1-12
 * @see com.sumainfor.zuul.service.SysLogService
 */
@Service("sysLogService")
public class SysLogServiceImpl extends ServiceImpl<SysLogDao, SysLogEntity> implements SysLogService {

    @Override
    public Page<SysLogEntity> selectLog(Page<SysLogEntity> page, Map<String, Object> params) {
        Page<SysLogEntity> records = page.setRecords(baseMapper.selectList(page, params));
        return records;
    }
}
